<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>元素隐藏实现背景图懒加载(Firefox、Safari可以，Chrome、IE都不行)</title>
    <style>
        .lazy {
            display: none;
            background: url(https://www.baidu.com/img/bd_logo1.png?qua=high);
            width: 250px;
            height: 250px;
            border: 2px solid gray;
        }
    </style>
</head>

<body>
    <div class="lazy">
    </div>
    <script>
        setTimeout(function () {
            document.querySelector('.lazy').style.display = 'block';
        }, 8000);
    </script>
</body>

</html>